﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site_InnerWeb.master" AutoEventWireup="false"
    CodeFile="Connect.aspx.vb" Inherits="private_secure_members_pages_Connect" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style4
        {
            width: 194px;
        }
        .style12
        {
            width: 186px;
        }
        .style14
        {
            width: 200px;
        }
        .style19
        {
            width: 288px;
        }
        .style25
        {
            width: 173px;
        }
        .style30
        {
            height: 21px;
        }
        .style31
        {
            width: 228px;
        }
        .style32
        {
        }
    .style33
    {
        width: 279px;
    }
    .style34
    {
        width: 274px;
    }
    .style35
    {
        width: 262px;
    }
    .style36
    {
        width: 287px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h3>
        Use this page to Connect with your Customers/Clients</h3>
    <div>
        <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="4" Width="857px"
            Height="275px">
            <ajaxToolkit:TabPanel ID="TabPanelEntity" runat="server" HeaderText="Entity">
                <HeaderTemplate>
                    Organisation
                </HeaderTemplate>
                <ContentTemplate>
                    <table id="tableEntity" class="style1">
                        <tr>
                            <td colspan="3">
                                Choose the <strong>Organisation/Entity</strong> from which to send your message
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style25" valign="top">
                                Choose an <strong>Organisation</strong>:
                            </td>
                            <td class="style4" valign="top">
                                <asp:DropDownList ID="DropDownList2" runat="server" Width="182px" DataSourceID="ObjectDataSource1"
                                    DataTextField="Name" DataValueField="ID">
                                </asp:DropDownList>
                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetEntityListFull_ByPersonIdTableAdapter">
                                    <SelectParameters>
                                        <asp:Parameter Name="PersonId" Type="Int32" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                            </td>
                            <td rowspan="3" valign="top">
                                <asp:FormView ID="FormView1" runat="server" DataKeyNames="ID" DataSourceID="ObjectDataSource2"
                                    GridLines="Both" Height="102px">
                                    <EditItemTemplate>
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    Entity Name:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="NameTextBox" runat="server" MaxLength="50" Text='<%# Bind("Name") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Co. Reg.&#160; No:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="CompanyRegNoTextBox" runat="server" MaxLength="10" Text='<%# Bind("CompanyRegNo") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    VAT Reg. No:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="VATRegNoTextBox" runat="server" MaxLength="10" Text='<%# Bind("VATRegNo") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Entity Type:
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource1"
                                                        DataTextField="Name" DataValueField="Id" SelectedValue='<%# Bind("EntityTypeId") %>'
                                                        Width="132px">
                                                        <asp:ListItem Value="0">Please Pick one...</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                                                        DeleteCommand="usp_lkp_EntityTypeDelete" DeleteCommandType="StoredProcedure"
                                                        InsertCommand="usp_lkp_EntityTypeInsert" InsertCommandType="StoredProcedure"
                                                        SelectCommand="usp_lkp_EntityTypeSelect_ALL" SelectCommandType="StoredProcedure"
                                                        UpdateCommand="usp_lkp_EntityTypeUpdate" UpdateCommandType="StoredProcedure">
                                                        <DeleteParameters>
                                                            <asp:Parameter Name="Id" Type="Int32" />
                                                        </DeleteParameters>
                                                        <InsertParameters>
                                                            <asp:Parameter Name="Name" Type="String" />
                                                            <asp:Parameter Name="Active" Type="Boolean" />
                                                        </InsertParameters>
                                                        <UpdateParameters>
                                                            <asp:Parameter Name="Id" Type="Int32" />
                                                            <asp:Parameter Name="Name" Type="String" />
                                                            <asp:Parameter Name="Active" Type="Boolean" />
                                                        </UpdateParameters>
                                                    </asp:SqlDataSource>
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                                            Text="Update" />&#160;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                                                CommandName="Cancel" Text="Cancel" />&#160;<br />
                                        <br />
                                        &#160;<asp:TextBox ID="DateCreatedTextBox" runat="server" Style="visibility: hidden;"
                                            Text='<%# Bind("DateCreated") %>' /><asp:Label ID="IDLabel1" runat="server" Style="visibility: hidden;"
                                                Text='<%# Eval("ID") %>' /><asp:CheckBox ID="ActiveCheckBox" runat="server" Checked='<%# Bind("Active") %>'
                                                    Style="visibility: hidden;" /><br />
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    Entity Name:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="NameTextBox0" runat="server" MaxLength="50" Text='<%# Bind("Name") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Co. Reg No:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="CompanyRegNoTextBox0" runat="server" MaxLength="10" Text='<%# Bind("CompanyRegNo") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    VAT Reg. No:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="VATRegNoTextBox0" runat="server" MaxLength="11" Text='<%# Bind("VATRegNo") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Entity Type:
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="DropDownList7" runat="server" DataSourceID="SqlDataSource2"
                                                        DataTextField="Name" DataValueField="Id" SelectedValue='<%# Bind("EntityTypeId") %>'
                                                        Width="132px">
                                                    </asp:DropDownList>
                                                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                                                        DeleteCommand="usp_lkp_EntityTypeDelete" DeleteCommandType="StoredProcedure"
                                                        InsertCommand="usp_lkp_EntityTypeInsert" InsertCommandType="StoredProcedure"
                                                        SelectCommand="usp_lkp_EntityTypeSelect_ALL" SelectCommandType="StoredProcedure"
                                                        UpdateCommand="usp_lkp_EntityTypeUpdate" UpdateCommandType="StoredProcedure">
                                                        <DeleteParameters>
                                                            <asp:Parameter Name="Id" Type="Int32" />
                                                        </DeleteParameters>
                                                        <InsertParameters>
                                                            <asp:Parameter Name="Name" Type="String" />
                                                            <asp:Parameter Name="Active" Type="Boolean" />
                                                        </InsertParameters>
                                                        <UpdateParameters>
                                                            <asp:Parameter Name="Id" Type="Int32" />
                                                            <asp:Parameter Name="Name" Type="String" />
                                                            <asp:Parameter Name="Active" Type="Boolean" />
                                                        </UpdateParameters>
                                                    </asp:SqlDataSource>
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                                </td></tr>
                                        </table>
                                        <br />
                                        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                                            Text="Insert" />&#160;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                                                CommandName="Cancel" Text="Cancel" /><asp:TextBox ID="DateCreatedTextBox0" runat="server"
                                                    Style="visibility: hidden;" Text='<%# Bind("DateCreated") %>' /><br />
                                        <%--                                        <asp:TextBox ID="EntityTypeIdTextBox" runat="server" Style="visibility: hidden;"
                                            Text='<%# Bind("EntityTypeId") %>' /><br />
                                        --%>
                                        <asp:CheckBox ID="ActiveCheckBox0" runat="server" Checked='<%# Bind("Active") %>'
                                            Style="visibility: hidden;" /></InsertItemTemplate>
                                    <ItemTemplate>
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    Entity Name :
                                                </td>
                                                <td>
                                                    <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Co. Reg No:
                                                </td>
                                                <td>
                                                    <asp:Label ID="CompanyRegNoLabel" runat="server" Text='<%# Bind("CompanyRegNo") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    VAT Reg. No:
                                                </td>
                                                <td>
                                                    <asp:Label ID="VATRegNoLabel" runat="server" Text='<%# Bind("VATRegNo") %>' />
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Entity Type:
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="DropDownList8" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource3"
                                                        DataTextField="Name" DataValueField="Id" Enabled="False" SelectedValue='<%# Bind("EntityTypeId") %>'
                                                        Width="132px">
                                                        <asp:ListItem Value="0">Pick one please...</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                                                        DeleteCommand="usp_lkp_EntityTypeDelete" DeleteCommandType="StoredProcedure"
                                                        InsertCommand="usp_lkp_EntityTypeInsert" InsertCommandType="StoredProcedure"
                                                        SelectCommand="usp_lkp_EntityTypeSelect_ALL" SelectCommandType="StoredProcedure"
                                                        UpdateCommand="usp_lkp_EntityTypeUpdate" UpdateCommandType="StoredProcedure">
                                                        <DeleteParameters>
                                                            <asp:Parameter Name="Id" Type="Int32" />
                                                        </DeleteParameters>
                                                        <InsertParameters>
                                                            <asp:Parameter Name="Name" Type="String" />
                                                            <asp:Parameter Name="Active" Type="Boolean" />
                                                        </InsertParameters>
                                                        <UpdateParameters>
                                                            <asp:Parameter Name="Id" Type="Int32" />
                                                            <asp:Parameter Name="Name" Type="String" />
                                                            <asp:Parameter Name="Active" Type="Boolean" />
                                                        </UpdateParameters>
                                                    </asp:SqlDataSource>
                                                </td>
                                                <td>
                                                    &#160;&nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                        <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
                                            Text="Edit" />&#160;<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False"
                                                CommandName="Delete" Text="Delete" />&#160;<asp:LinkButton ID="NewButton" runat="server"
                                                    CausesValidation="False" CommandName="New" Text="New" />&#160;<asp:Label ID="DateCreatedLabel"
                                                        runat="server" Style="visibility: hidden;" Text='<%# Bind("DateCreated") %>' /><asp:Label
                                                            ID="IDLabel" runat="server" Style="visibility: hidden;" Text='<%# Eval("ID") %>' />&#160;<asp:Label
                                                                ID="EntityTypeIdLabel" runat="server" Style="visibility: hidden;" Text='<%# Bind("EntityTypeId") %>' /><br />
                                        <asp:CheckBox ID="ActiveCheckBox1" runat="server" Checked='<%# Bind("Active") %>'
                                            Enabled="false" Style="visibility: hidden;" /><br />
                                    </ItemTemplate>
                                </asp:FormView>
                                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="Delete"
                                    InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataBy"
                                    TypeName="LogginsLogDSTableAdapters.usp_EntityTableAdapter" UpdateMethod="Update">
                                    <DeleteParameters>
                                        <asp:Parameter Name="EntityID" Type="Int32" />
                                    </DeleteParameters>
                                    <InsertParameters>
                                        <asp:Parameter Name="Name" Type="String" />
                                        <asp:Parameter Name="CompanyRegNo" Type="String" />
                                        <asp:Parameter Name="DateCreated" Type="DateTime" />
                                        <asp:Parameter Name="VATRegNo" Type="String" />
                                        <asp:Parameter Name="EntityTypeId" Type="Int32" />
                                        <asp:Parameter Name="Active" Type="Boolean" />
                                        <asp:Parameter Direction="InputOutput" Name="EntityId" Type="Object" />
                                    </InsertParameters>
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="DropDownList2" Name="EntityID" PropertyName="SelectedValue"
                                            Type="Int32" />
                                    </SelectParameters>
                                    <UpdateParameters>
                                        <asp:Parameter Name="Name" Type="String" />
                                        <asp:Parameter Name="CompanyRegNo" Type="String" />
                                        <asp:Parameter Name="DateCreated" Type="DateTime" />
                                        <asp:Parameter Name="VATRegNo" Type="String" />
                                        <asp:Parameter Name="EntityTypeId" Type="Int32" />
                                        <asp:Parameter Name="Active" Type="Boolean" />
                                        <asp:Parameter Name="Original_ID" Type="Int32" />
                                    </UpdateParameters>
                                </asp:ObjectDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td class="style25" valign="top">
                                &nbsp;</td>
                            <td class="style4" valign="top">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style25">
                                &nbsp;&nbsp;
                            </td>
                            <td class="style4" valign="top">
                                <asp:Button ID="Button1" runat="server" Text="Campaign" />
                            </td>
                        </tr>
                    </table>
                    <br />
                    <br />
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanelCampaign" runat="server" HeaderText="Campaign">
                <HeaderTemplate>
                    Campaign
                </HeaderTemplate>
                <ContentTemplate>
                    <table id="tableCampaign" class="style1">
                        <tr>
                            <td colspan="3">
                                Choose the <strong>Campaign</strong> through which to send the message
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style33" valign="top">
                                <asp:RadioButton ID="RadioButton18" runat="server" GroupName="Campaign" 
                                    Text="Choose Existing &lt;b&gt;Text/SMS Campaign&lt;/b&gt;" 
                                    Checked="True" />
                            </td>
                            <td class="style25">
                                <asp:DropDownList ID="DropDownList16" runat="server" Width="160px" 
                                    DataSourceID="SqlUserCampaignText_ds" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlUserCampaignText_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_UserCampaignSelect_ByTypeText_DDL" 
                                    SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                            </td>
                            <td rowspan="4" valign="top">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style33" valign="top">
                                <asp:RadioButton ID="RadioButton2" runat="server" GroupName="Campaign" 
                                    Text="Choose Existing &lt;b&gt;Email Campaign&lt;/b&gt;" />
                            </td>
                            <td class="style25">
                                <asp:DropDownList ID="DropDownList12" runat="server" Width="160px" 
                                    DataSourceID="SqlUserCampaignEmail_ds" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlUserCampaignEmail_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_UserCampaignSelect_ByTypeEmail_DDL" 
                                    SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td class="style33" valign="top">
                                <asp:RadioButton ID="RadioButton22" runat="server" GroupName="Campaign" 
                                    Text="Choose By Campaign Name" />
                            </td>
                            <td class="style25">
                                <asp:DropDownList ID="DropDownList18" runat="server" 
                                    DataSourceID="SqlUserCampaignName_ds" DataTextField="Name" DataValueField="Id" 
                                    Width="160px">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlUserCampaignName_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_UserCampaignSelect_ByName_DDL" 
                                    SelectCommandType="StoredProcedure">
                                    <SelectParameters>
                                        <asp:Parameter Name="Name" Type="String" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td class="style33">
                                &nbsp;&nbsp;
                            </td>
                            <td class="style25">
                                <asp:Button ID="Button2" runat="server" Text="Target List" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanelTargetList" runat="server" HeaderText="Target List">
                <HeaderTemplate>
                    Target List
                </HeaderTemplate>
                <ContentTemplate>
                    <table id="tableTargetList" class="style1">
                        <tr>
                            <td colspan="3">
                                Choose <strong>exactly who</strong> gets your message - (Further filtering available
                                on the next tab)
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style34">
                                <asp:RadioButton ID="RadioButton20" runat="server" GroupName="TargetList" 
                                    Text="Choose Existing &lt;b&gt;Text/SMS List&lt;/b&gt;" Checked="True" />
                            </td>
                            <td class="style4">
                                <asp:DropDownList ID="DropDownList1" runat="server" Width="160px" 
                                    DataSourceID="SqlTargetListText_ds" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlTargetListText_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_TargetListSelect_ByTypeText_DDL" 
                                    SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                            </td>
                            <td rowspan="5" valign="top">
                                <strong>Recipients</strong><asp:DetailsView ID="DetailsView2" runat="server" Height="50px" Width="125px">
                                </asp:DetailsView>
                            </td>
                        </tr>
                        <tr>
                            <td class="style34">
                                <asp:RadioButton ID="RadioButton4" runat="server" GroupName="TargetList" 
                                    Text="Choose Existing &lt;b&gt;Email List&lt;/b&gt;" />
                            </td>
                            <td class="style4">
                                <asp:DropDownList ID="DropDownList15" runat="server" Width="160px" 
                                    DataSourceID="SqlTargetListEmail_ds" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlTargetListEmail_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_TargetListSelect_ByTypeEmail_DDL" 
                                    SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td class="style34">
                                <asp:RadioButton ID="RadioButton21" runat="server" GroupName="TargetList" 
                                    Text="Choose Existing &lt;b&gt;Email &amp; Text List&lt;/b&gt;" />
                            </td>
                            <td class="style4">
                                <asp:DropDownList ID="DropDownList17" runat="server" Width="160px" 
                                    DataSourceID="SqlTargetListName_ds" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlTargetListName_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_TargetListSelect_ByName_DDL" 
                                    SelectCommandType="StoredProcedure">
                                    <SelectParameters>
                                        <asp:Parameter Name="Name" Type="String" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td class="style34">
                                &nbsp;
                            </td>
                            <td class="style4">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style34">
                                &nbsp;&nbsp;
                            </td>
                            <td class="style4">
                                <asp:Button ID="Button3" runat="server" Text="Content" />
                            </td>
                        </tr>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="Filter">
                <HeaderTemplate>
                    Filter
                </HeaderTemplate>
                <ContentTemplate>
                    <table id="tableFilter" class="style1">
                        <tr>
                            <td colspan="3">
                                Further <strong>Limit Who, </strong>From your Chosen List(s), Gets Your Messsage
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style35" valign="top">
                                <asp:RadioButton ID="RadioButton14" runat="server" Checked="True" GroupName="Filter"
                                    Text="Send To Entire List" />
                                &nbsp;(No Filter)</td>
                            <td class="style19">
                                &nbsp;
                            </td>
                            <td rowspan="5" valign="top">
                                <asp:DetailsView ID="DetailsView3" runat="server" Height="50px" Width="125px">
                                </asp:DetailsView>
                            </td>
                        </tr>
                        <tr>
                            <td class="style35" valign="top">
                                <asp:RadioButton ID="RadioButton16" runat="server" GroupName="Filter" 
                                    Text="Choose A Filter To Apply" />
                            </td>
                            <td class="style19">
                                <asp:DropDownList ID="DropDownList9" runat="server" Width="160px" 
                                    DataSourceID="SqlFilter_ds" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlFilter_ds" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
                                    SelectCommand="usp_SystemFilterSelect_DDL" SelectCommandType="StoredProcedure">
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                        <tr>
                            <td class="style35">
                                &nbsp;
                            </td>
                            <td class="style19">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style35">
                                &nbsp;
                            </td>
                            <td class="style19">
                                <asp:Button ID="Button7" runat="server" Text="Button" />
                            </td>
                        </tr>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanelContent" runat="server" HeaderText="Content">
                <HeaderTemplate>
                    Content
                </HeaderTemplate>
                <ContentTemplate>
                    <table id="tableContent" class="style1">
                        <tr>
                            <td colspan="2">
                                What do you want to tell <strong>your Customers?</strong>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="style30">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td  class="style36" valign="top">
                                <asp:RadioButton ID="RadioButton1" runat="server" GroupName="content" Text="I'll type my message now"
                                    Width="270px" />
                            </td>
                            <td class="style32">
                                <asp:TextBox ID="TextBox1" runat="server" Width="500px" Rows="3" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style36">
                                <asp:RadioButton ID="RadioButton13" runat="server" GroupName="content" Text="Use A Predefined System Message"
                                    Width="270px" />
                            </td>
                            <td class="style32">
                                <asp:DropDownList ID="DropDownList5" runat="server" Width="160px">
                                </asp:DropDownList>
                            </td>
                            
                        </tr>
                        <tr>
                            <td class="style36">
                                <asp:RadioButton ID="RadioButton17" runat="server" GroupName="content" Text="Use One of Your Own Saved Messages"
                                    Width="270px" />
                            </td>
                            <td class="style32">
                                <asp:DropDownList ID="DropDownList10" runat="server" Width="160px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style36">
                                &nbsp;</td>
                            <td class="style32">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style36">
                                &nbsp;&nbsp;
                            </td>
                            <td class="style32">
                                <asp:Button ID="Button5" runat="server" Text="Schedule" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanelSchedule" runat="server" HeaderText="Schedule">
                <HeaderTemplate>
                    Schedule
                </HeaderTemplate>
                <ContentTemplate>
                    <table id="tableSchedule" class="style1">
                        <tr>
                            <td colspan="3">
                                Choose a <strong>Schedule</strong> to send your message to your customers
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style14">
                                <asp:RadioButton ID="RadioButton5" runat="server" Text="Send Immediately" Checked="True"
                                    GroupName="schedule" />
                            </td>
                            <td class="style12">
                                &nbsp;&nbsp;
                            </td>
                            <td rowspan="3" valign="top">
                                <asp:DetailsView ID="DetailsView5" runat="server" Height="50px" Width="125px">
                                </asp:DetailsView>
                            </td>
                        </tr>
                        <tr>
                            <td class="style14">
                                <asp:RadioButton ID="RadioButton6" runat="server" Text="Schedule for Later" GroupName="schedule" />
                            </td>
                            <td class="style12">
                                <asp:DropDownList ID="DropDownList6" runat="server" Width="160px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style14">
                                &nbsp;&nbsp;
                            </td>
                            <td class="style12">
                                <asp:Button ID="Button6" runat="server" Text="Summary" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanelSummary" runat="server" HeaderText="Summary">
                <ContentTemplate>
                    <table id="tableSummary" class="style1">
                        <tr>
                            <td>
                                Here is what you decided to do - in <strong>Summary</strong>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblSummary" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="Button8" runat="server" Text="Send Now" Visible="False" />
                                <asp:Button ID="Button9" runat="server" Text="Schedule" Visible="False" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
    </div>
</asp:Content>
